<?php
namespace app\home\model;
use think\Model;

class Classify extends Model
{
    /**
     * @param $type
     */
    public function getAll($type){
        if($type){
            $quert=$this->where('nav',"=","0")
                        ->where('nav',"=",$type)
                        ->group('class_name')
                        ->column('class_name');
        }else{
            $quert=$this->where('nav',"=","0")
                        ->group('class_name')
                        ->column('class_name');
        }
        return $quert;
    }
}
